import 'package:flutter/material.dart';
import 'package:get/get_navigation/src/root/get_material_app.dart';
import 'package:provider/provider.dart';
import 'package:twitter_app/common/routers/index.dart';
import 'package:twitter_app/common/services/auth/login_or_register.dart';
import 'package:twitter_app/themes/theme_provider.dart';

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      home: const LoginOrRegister(),
      debugShowCheckedModeBanner: false,
      getPages: RoutePages.list,
      initialRoute: RouteNames.home,
      theme: Provider.of<ThemeProvider>(context).themeData,
    );
  }
}
